package com.soft.cqlinglong.oto.impl.permission;/**
 * Created by huangxueqian on 2017/7/15/015.
 */

import com.soft.cqlinglong.oto.dao.model.TSMenu;
import com.soft.cqlinglong.oto.dao.model.TSUser;
import com.soft.cqlinglong.oto.service.permission.TSMenuService;
import com.soft.cqlinglong.oto.service.permission.TSPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 黄学乾 778142659@qq.com
 * @create 2017-07-15 10:27
 **/
@Service
public class TSPermissionServiceImpl implements TSPermissionService {
    @Autowired(required = false)
    private TSMenuService tsMenuService ;

    /**
     * @param tsUser 根据当前人；获取当前人所有的菜单
     */
    public List<TSMenu> queryTSMenuList(TSUser tsUser){
        List<TSMenu> tsMenuList = null;
        try {
            tsMenuList = tsMenuService.queryTSMenuList(tsUser);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return tsMenuList ;
    }

}
